﻿using System;
using YunZuan.Models.Attributes;
using YunZuan.Models.Entities;

namespace Retail.Models.DBModels
{
    [Table(TableName = "yz_customer_menu", PrimaryKey = "ID")]
    public class CustomerMenu : BaseEntity
    {
        public CustomerMenu()
        { }
        #region Model
        private int _menuid;
        /// <summary>
        ///菜单ID
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int MenuID
        {
            get { return _menuid; }
            set { this.ChangeNotify<int>("MenuID", value, ref _menuid); }
        }
        private string _menuname;
        /// <summary>
        ///菜单
        /// </summary>
        public string MenuName
        {
            get { return _menuname; }
            set { this.ChangeNotify<string>("MenuName", value, ref _menuname); }
        }
        private int _remark;
        /// <summary>
        ///备注
        /// </summary>
        public int Remark
        {
            get { return _remark; }
            set { this.ChangeNotify<int>("Remark", value, ref _remark); }
        }
        private DateTime _createtime;
        /// <summary>
        ///时间
        /// </summary>
        public DateTime CreateTime
        {
            get { return _createtime; }
            set { this.ChangeNotify<DateTime>("CreateTime", value, ref _createtime); }
        }
        private bool _flag = true;
        /// <summary>
        ///是否显示 1是0否
        /// </summary>
        public bool Flag
        {
            get { return _flag; }
            set { this.ChangeNotify<bool>("Flag", value, ref _flag); }
        }
        #endregion

    }
}
